package com.ibiaoke.goods.service;

import com.ibiaoke.common.base.Page;
import com.ibiaoke.goods.entity.XcxGoods;
import com.ibiaoke.goods.entity.vo.XcxGoodsVO;

import java.util.List;

public interface XcxGoodsService {
    /**
     * 根据分类查询商品
     */
    List<XcxGoods> xcxListGoodsByGoodsClass(Integer cateId, Integer shopId, Page page);

    /**
     * 获取单个商品
     * @param goodsId
     * @param shopId
     * @return
     */
    XcxGoods getXcxGoodsByGoodsId(Integer goodsId, Integer shopId);

    /**
     * 通过商品id查询单个商品的详细
     */
    XcxGoods getXcxGoodsById(Integer goodsId);

    /**
     * boss商品列表
     * @param xcxGoodsVO
     * @param page
     * @return
     */
    List<XcxGoods> listXcxGoods(XcxGoodsVO xcxGoodsVO, Page page);

    int saveXcxGoods(XcxGoods xcxGoods);

    int batchUpdateGoodsStatus(String xcxGoodsId, Integer status);

    int batchUpdateGoodsDelStatus(String xcxGoodsId, Integer delStatus);

    int updateGoodsInfoById(XcxGoodsVO xcxGoodsVO);
}
